//
//  ViewController.swift
//  SecureSdk
//
//  Created by kangshengsheng on 02/11/2022.
//  Copyright (c) 2022 kangshengsheng. All rights reserved.
//

import UIKit
import SecureSdk

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let secure = BesSecureHelperFactory.share.getHelper(algorithm: "BES_SIM", key: "83b070f850e259435553e38f99e027ec83b070f850e259435553e38f99e027ec")
        
        let psw = secure.encrypt(param: "A7@2da#d18")
        let old = secure.deEncrypt(param: psw)
        print("psw:\(psw),old:\(old)")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

